import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    flag:""
  },
  mutations: {
    test(state,value){

        state.flag = value;
    }
  },
  actions: {
    test(store,value){
      store.commit("test",value)
    }
  },
  modules: {
  }
})
